#!/bin/bash

if [ ! -d "./venv" ]; then
    sudo apt install -y python3-venv
    python3 -m venv ./venv
    #rm -r ./venv
fi
venv/bin/python -m pip install -U pip --index-url=https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
venv/bin/python -m pip install -r ./requirements.txt --index-url=https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
